package com.ruoyi.system.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.system.api.domain.SysUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

@Component
public interface UserService extends IService<SysUser> {

    List<SysUser> selectUserList(IPage<SysUser> page, SysUser user);

    boolean checkUserNameUnique(SysUser user);

    boolean checkPhoneUnique(SysUser user);

    boolean checkEmailUnique(SysUser user);

    void checkUserDataScope(Long userId);

    SysUser selectUserById(Long userId);

    int insertUser(SysUser user);

    void checkUserAllowed(SysUser user);

    int updateUser(SysUser user);


    Long[] selectStoreIds(Long userId);

    List<Map<String,Object>> getPostData();
}
